package models.crawlers.common;

import java.io.Serializable;

public class WebSiteInfo implements Serializable{
    public String className;
    public String errorMessage;
    public boolean isError;
    public SitePathInfo currentSitePath;
    public int categoryIndex;
    public int productIndex;
    public int categoriesCount;
    public int productsCount;
    public boolean isCompleted;

    public WebSiteInfo(SitePathInfo categoryPath, int categoriesCount, int productsCount){
        this.className = this.getClass().getSimpleName();
        this.categoriesCount = categoriesCount;
        this.productsCount = productsCount;
        this.currentSitePath = categoryPath;
    }
}
